package classes 
{
	import alternativa.engine3d.core.Face;
	import alternativa.engine3d.core.Mesh;
	import alternativa.engine3d.core.Vertex;
	import alternativa.types.Point3D;
	import alternativa.engine3d.events.MouseEvent3D;
	import flash.geom.Point;

	public class uam3Dmesh extends Mesh {
		private function f(v1:Number,v2:Number,v3:Number,uv00:Number,uv01:Number,uv10:Number,uv11:Number,uv20:Number,uv21:Number,normX:Number,normY:Number,normZ:Number):void {
			var f:Face = createFace([v1, v2, v3]);
			setUVsToFace(new Point(uv00, 1-uv01), new Point(uv10, 1-uv11), new Point(uv20, 1-uv21), f.id);
			// NOTE: normal is calculated automatically, blender values are provided just in case you need them
			this.addEventListener(MouseEvent3D.CLICK, function(e:MouseEvent3D):void { trace("click over me!"); });
		}

		private function f4(v1:Number,v2:Number,v3:Number,v4:Number,uv00:Number,uv01:Number,uv10:Number,uv11:Number,uv20:Number,uv21:Number,uv30:Number,uv31:Number,normX:Number,normY:Number,normZ:Number):void {
			var f:Face = createFace([v1, v2, v3, v4]);
			setUVsToFace(new Point(uv00, 1-uv01), new Point(uv10, 1-uv11), new Point(uv20, 1-uv21), f.id);
			// NOTE: 4th UV pair is not used (TODO use it to triangulate quad if necessary)
			// NOTE: normal is calculated automatically, blender values are provided just in case you need them
		}

		private function f2(v1:Number,v2:Number,v3:Number):void {
			createFace([v1, v2, v3]);
		}

		private function f24(v1:Number,v2:Number,v3:Number,v4:Number):void {
			createFace([v1, v2, v3, v4]);
		}

		private function v(vx:Number,vy:Number,vz:Number):void {
			createVertex(vx,vy,vz);
		}

		public function uam3Dmesh( p_Name:String=null ) {
			super( p_Name );

			v(2.084000,0.682000,0.000000);
			v(1.993000,0.682000,0.000000);
			v(1.766000,0.402000,0.000000);
			v(1.540000,0.682000,0.000000);
			v(1.448000,0.682000,0.000000);
			v(1.448000,0.000000,0.000000);
			v(1.546000,0.000000,0.000000);
			v(1.546000,0.531000,0.000000);
			v(1.548000,0.531000,0.000000);
			v(1.758000,0.267000,0.000000);
			v(1.774000,0.267000,0.000000);
			v(1.984000,0.531000,0.000000);
			v(1.986000,0.531000,0.000000);
			v(1.986000,0.000000,0.000000);
			v(2.084000,0.000000,0.000000);
			v(1.070000,0.686000,0.000000);
			v(1.001000,0.686000,0.000000);
			v(0.708000,0.000000,0.000000);
			v(0.808000,0.000000,0.000000);
			v(0.894000,0.201000,0.000000);
			v(1.184000,0.201000,0.000000);
			v(1.275000,0.000000,0.000000);
			v(1.375000,0.000000,0.000000);
			v(1.034000,0.536000,0.000000);
			v(1.144000,0.289000,0.000000);
			v(0.932000,0.289000,0.000000);
			v(0.648000,0.682000,0.000000);
			v(0.550000,0.682000,0.000000);
			v(0.550000,0.285000,0.000000);
			v(0.549822,0.269292,0.000000);
			v(0.549245,0.254171,0.000000);
			v(0.548203,0.239641,0.000000);
			v(0.546630,0.225704,0.000000);
			v(0.544459,0.212364,0.000000);
			v(0.541625,0.199625,0.000000);
			v(0.538062,0.187490,0.000000);
			v(0.533704,0.175963,0.000000);
			v(0.528484,0.165047,0.000000);
			v(0.522338,0.154745,0.000000);
			v(0.515198,0.145062,0.000000);
			v(0.507000,0.136000,0.000000);
			v(0.498772,0.128406,0.000000);
			v(0.489593,0.121162,0.000000);
			v(0.479469,0.114328,0.000000);
			v(0.468407,0.107963,0.000000);
			v(0.456416,0.102126,0.000000);
			v(0.443500,0.096875,0.000000);
			v(0.429668,0.092270,0.000000);
			v(0.414926,0.088370,0.000000);
			v(0.399281,0.085234,0.000000);
			v(0.382741,0.082921,0.000000);
			v(0.365311,0.081490,0.000000);
			v(0.347000,0.081000,0.000000);
			v(0.332458,0.081396,0.000000);
			v(0.318333,0.082588,0.000000);
			v(0.304625,0.084578,0.000000);
			v(0.291333,0.087370,0.000000);
			v(0.278458,0.090968,0.000000);
			v(0.266000,0.095375,0.000000);
			v(0.253958,0.100594,0.000000);
			v(0.242333,0.106630,0.000000);
			v(0.231125,0.113484,0.000000);
			v(0.220333,0.121162,0.000000);
			v(0.209958,0.129666,0.000000);
			v(0.200000,0.139000,0.000000);
			v(0.192681,0.146796,0.000000);
			v(0.186199,0.154787,0.000000);
			v(0.180516,0.163125,0.000000);
			v(0.175593,0.171963,0.000000);
			v(0.171392,0.181454,0.000000);
			v(0.167875,0.191750,0.000000);
			v(0.165004,0.203005,0.000000);
			v(0.162741,0.215370,0.000000);
			v(0.161047,0.229000,0.000000);
			v(0.159884,0.244046,0.000000);
			v(0.159215,0.260662,0.000000);
			v(0.159000,0.279000,0.000000);
			v(0.159000,0.682000,0.000000);
			v(0.061000,0.682000,0.000000);
			v(0.061000,0.258000,0.000000);
			v(0.063838,0.213674,0.000000);
			v(0.072037,0.173639,0.000000);
			v(0.085125,0.137812,0.000000);
			v(0.102630,0.106111,0.000000);
			v(0.124079,0.078451,0.000000);
			v(0.149000,0.054750,0.000000);
			v(0.176921,0.034924,0.000000);
			v(0.207370,0.018889,0.000000);
			v(0.239875,0.006562,0.000000);
			v(0.273963,-0.002139,0.000000);
			v(0.309162,-0.007299,0.000000);
			v(0.345000,-0.009000,0.000000);
			v(0.393606,-0.006739,0.000000);
			v(0.437931,-0.000079,0.000000);
			v(0.477984,0.010797,0.000000);
			v(0.513778,0.025704,0.000000);
			v(0.545321,0.044458,0.000000);
			v(0.572625,0.066875,0.000000);
			v(0.595700,0.092771,0.000000);
			v(0.614555,0.121963,0.000000);
			v(0.629203,0.154266,0.000000);
			v(0.639653,0.189495,0.000000);
			v(0.645915,0.227468,0.000000);
			v(0.648000,0.268000,0.000000);
			v(0.648000,0.268000,0.599884);
			v(0.645915,0.227468,0.599884);
			v(0.639653,0.189495,0.599884);
			v(0.629203,0.154266,0.599884);
			v(0.614555,0.121963,0.599884);
			v(0.595700,0.092771,0.599884);
			v(0.572625,0.066875,0.599884);
			v(0.545321,0.044458,0.599884);
			v(0.513778,0.025704,0.599884);
			v(0.477984,0.010797,0.599884);
			v(0.437931,-0.000079,0.599884);
			v(0.393606,-0.006739,0.599884);
			v(0.345000,-0.009000,0.599884);
			v(0.309162,-0.007299,0.599884);
			v(0.273963,-0.002139,0.599884);
			v(0.239875,0.006562,0.599884);
			v(0.207370,0.018889,0.599884);
			v(0.176921,0.034924,0.599884);
			v(0.149000,0.054750,0.599884);
			v(0.124079,0.078451,0.599884);
			v(0.102630,0.106111,0.599884);
			v(0.085125,0.137812,0.599884);
			v(0.072037,0.173639,0.599884);
			v(0.063838,0.213674,0.599884);
			v(0.061000,0.258000,0.599884);
			v(0.061000,0.682000,0.599884);
			v(0.159000,0.682000,0.599884);
			v(0.159000,0.279000,0.599884);
			v(0.159215,0.260662,0.599884);
			v(0.159884,0.244046,0.599884);
			v(0.161047,0.229000,0.599884);
			v(0.162741,0.215370,0.599884);
			v(0.165004,0.203005,0.599884);
			v(0.167875,0.191750,0.599884);
			v(0.171392,0.181454,0.599884);
			v(0.175593,0.171963,0.599884);
			v(0.180516,0.163125,0.599884);
			v(0.186199,0.154787,0.599884);
			v(0.192681,0.146796,0.599884);
			v(0.200000,0.139000,0.599884);
			v(0.209958,0.129666,0.599884);
			v(0.220333,0.121162,0.599884);
			v(0.231125,0.113484,0.599884);
			v(0.242333,0.106630,0.599884);
			v(0.253958,0.100594,0.599884);
			v(0.266000,0.095375,0.599884);
			v(0.278458,0.090968,0.599884);
			v(0.291333,0.087370,0.599884);
			v(0.304625,0.084578,0.599884);
			v(0.318333,0.082588,0.599884);
			v(0.332458,0.081396,0.599884);
			v(0.347000,0.081000,0.599884);
			v(0.365311,0.081490,0.599884);
			v(0.382741,0.082921,0.599884);
			v(0.399281,0.085234,0.599884);
			v(0.414926,0.088370,0.599884);
			v(0.429668,0.092270,0.599884);
			v(0.443500,0.096875,0.599884);
			v(0.456416,0.102126,0.599884);
			v(0.468407,0.107963,0.599884);
			v(0.479469,0.114328,0.599884);
			v(0.489593,0.121162,0.599884);
			v(0.498772,0.128406,0.599884);
			v(0.507000,0.136000,0.599884);
			v(0.515198,0.145062,0.599884);
			v(0.522338,0.154745,0.599884);
			v(0.528484,0.165047,0.599884);
			v(0.533704,0.175963,0.599884);
			v(0.538062,0.187490,0.599884);
			v(0.541625,0.199625,0.599884);
			v(0.544459,0.212364,0.599884);
			v(0.546630,0.225704,0.599884);
			v(0.548203,0.239641,0.599884);
			v(0.549245,0.254171,0.599884);
			v(0.549822,0.269292,0.599884);
			v(0.550000,0.285000,0.599884);
			v(0.550000,0.682000,0.599884);
			v(0.648000,0.682000,0.599884);
			v(0.932000,0.289000,0.599884);
			v(1.144000,0.289000,0.599884);
			v(1.034000,0.536000,0.599884);
			v(1.375000,0.000000,0.599884);
			v(1.275000,0.000000,0.599884);
			v(1.184000,0.201000,0.599884);
			v(0.894000,0.201000,0.599884);
			v(0.808000,0.000000,0.599884);
			v(0.708000,0.000000,0.599884);
			v(1.001000,0.686000,0.599884);
			v(1.070000,0.686000,0.599884);
			v(2.084000,0.000000,0.599884);
			v(1.986000,0.000000,0.599884);
			v(1.986000,0.531000,0.599884);
			v(1.984000,0.531000,0.599884);
			v(1.774000,0.267000,0.599884);
			v(1.758000,0.267000,0.599884);
			v(1.548000,0.531000,0.599884);
			v(1.546000,0.531000,0.599884);
			v(1.546000,0.000000,0.599884);
			v(1.448000,0.000000,0.599884);
			v(1.448000,0.682000,0.599884);
			v(1.540000,0.682000,0.599884);
			v(1.766000,0.402000,0.599884);
			v(1.993000,0.682000,0.599884);
			v(2.084000,0.682000,0.599884);

			f2(5,3,4);
			f2(5,7,3);
			f2(7,8,3);
			f2(8,2,3);
			f2(2,0,1);
			f2(11,0,2);
			f2(12,0,11);
			f2(14,0,12);
			f2(5,6,7);
			f2(9,2,8);
			f2(2,10,11);
			f2(13,14,12);
			f2(9,10,2);
			f2(17,15,16);
			f2(17,23,15);
			f2(23,22,15);
			f2(17,25,23);
			f2(24,22,23);
			f2(17,19,25);
			f2(19,24,25);
			f2(19,20,24);
			f2(20,22,24);
			f2(17,18,19);
			f2(21,22,20);
			f2(79,77,78);
			f2(79,76,77);
			f2(28,26,27);
			f2(28,103,26);
			f2(29,103,28);
			f2(79,75,76);
			f2(30,103,29);
			f2(30,102,103);
			f2(79,74,75);
			f2(80,74,79);
			f2(31,102,30);
			f2(80,73,74);
			f2(32,102,31);
			f2(80,72,73);
			f2(32,101,102);
			f2(33,101,32);
			f2(80,71,72);
			f2(81,71,80);
			f2(34,101,33);
			f2(81,70,71);
			f2(35,101,34);
			f2(81,69,70);
			f2(35,100,101);
			f2(36,100,35);
			f2(81,68,69);
			f2(37,100,36);
			f2(82,68,81);
			f2(82,67,68);
			f2(38,100,37);
			f2(82,66,67);
			f2(82,65,66);
			f2(39,100,38);
			f2(39,99,100);
			f2(82,64,65);
			f2(40,99,39);
			f2(82,63,64);
			f2(83,63,82);
			f2(41,99,40);
			f2(83,62,63);
			f2(42,99,41);
			f2(42,98,99);
			f2(83,61,62);
			f2(43,98,42);
			f2(44,98,43);
			f2(83,60,61);
			f2(45,98,44);
			f2(83,59,60);
			f2(84,59,83);
			f2(46,98,45);
			f2(84,58,59);
			f2(47,98,46);
			f2(84,57,58);
			f2(47,97,98);
			f2(48,97,47);
			f2(84,56,57);
			f2(49,97,48);
			f2(84,55,56);
			f2(50,97,49);
			f2(84,54,55);
			f2(51,97,50);
			f2(84,53,54);
			f2(52,97,51);
			f2(84,52,53);
			f2(84,97,52);
			f2(85,97,84);
			f2(85,96,97);
			f2(86,96,85);
			f2(86,95,96);
			f2(87,95,86);
			f2(87,94,95);
			f2(88,94,87);
			f2(88,93,94);
			f2(89,93,88);
			f2(89,92,93);
			f2(90,92,89);
			f2(90,91,92);
			f24(103,102,105,104);
			f24(102,101,106,105);
			f24(101,100,107,106);
			f24(100,99,108,107);
			f24(99,98,109,108);
			f24(98,97,110,109);
			f24(97,96,111,110);
			f24(96,95,112,111);
			f24(95,94,113,112);
			f24(94,93,114,113);
			f24(93,92,115,114);
			f24(92,91,116,115);
			f24(91,90,117,116);
			f24(90,89,118,117);
			f24(89,88,119,118);
			f24(88,87,120,119);
			f24(87,86,121,120);
			f24(86,85,122,121);
			f24(85,84,123,122);
			f24(84,83,124,123);
			f24(83,82,125,124);
			f24(82,81,126,125);
			f24(81,80,127,126);
			f24(80,79,128,127);
			f24(79,78,129,128);
			f24(78,77,130,129);
			f24(77,76,131,130);
			f24(76,75,132,131);
			f24(75,74,133,132);
			f24(74,73,134,133);
			f24(73,72,135,134);
			f24(72,71,136,135);
			f24(71,70,137,136);
			f24(70,69,138,137);
			f24(69,68,139,138);
			f24(68,67,140,139);
			f24(67,66,141,140);
			f24(66,65,142,141);
			f24(65,64,143,142);
			f24(64,63,144,143);
			f24(63,62,145,144);
			f24(62,61,146,145);
			f24(61,60,147,146);
			f24(60,59,148,147);
			f24(59,58,149,148);
			f24(58,57,150,149);
			f24(57,56,151,150);
			f24(56,55,152,151);
			f24(55,54,153,152);
			f24(54,53,154,153);
			f24(53,52,155,154);
			f24(52,51,156,155);
			f24(51,50,157,156);
			f24(50,49,158,157);
			f24(49,48,159,158);
			f24(48,47,160,159);
			f24(47,46,161,160);
			f24(46,45,162,161);
			f24(45,44,163,162);
			f24(44,43,164,163);
			f24(43,42,165,164);
			f24(42,41,166,165);
			f24(41,40,167,166);
			f24(40,39,168,167);
			f24(39,38,169,168);
			f24(38,37,170,169);
			f24(37,36,171,170);
			f24(36,35,172,171);
			f24(35,34,173,172);
			f24(34,33,174,173);
			f24(33,32,175,174);
			f24(32,31,176,175);
			f24(31,30,177,176);
			f24(30,29,178,177);
			f24(29,28,179,178);
			f24(28,27,180,179);
			f24(26,103,104,181);
			f24(27,26,181,180);
			f24(25,24,183,182);
			f24(23,25,182,184);
			f24(24,23,184,183);
			f24(22,21,186,185);
			f24(21,20,187,186);
			f24(20,19,188,187);
			f24(19,18,189,188);
			f24(18,17,190,189);
			f24(17,16,191,190);
			f24(15,22,185,192);
			f24(16,15,192,191);
			f24(14,13,194,193);
			f24(13,12,195,194);
			f24(12,11,196,195);
			f24(11,10,197,196);
			f24(10,9,198,197);
			f24(9,8,199,198);
			f24(8,7,200,199);
			f24(7,6,201,200);
			f24(6,5,202,201);
			f24(5,4,203,202);
			f24(4,3,204,203);
			f24(3,2,205,204);
			f24(2,1,206,205);
			f24(0,14,193,207);
			f24(1,0,207,206);
			f2(203,204,202);
			f2(204,200,202);
			f2(204,199,200);
			f2(204,205,199);
			f2(206,207,205);
			f2(205,207,196);
			f2(196,207,195);
			f2(195,207,193);
			f2(200,201,202);
			f2(199,205,198);
			f2(196,197,205);
			f2(195,193,194);
			f2(205,197,198);
			f2(191,192,190);
			f2(192,184,190);
			f2(192,185,184);
			f2(184,182,190);
			f2(184,185,183);
			f2(182,188,190);
			f2(182,183,188);
			f2(183,187,188);
			f2(183,185,187);
			f2(188,189,190);
			f2(187,185,186);
			f2(129,130,128);
			f2(130,131,128);
			f2(180,181,179);
			f2(181,104,179);
			f2(179,104,178);
			f2(131,132,128);
			f2(178,104,177);
			f2(104,105,177);
			f2(132,133,128);
			f2(128,133,127);
			f2(177,105,176);
			f2(133,134,127);
			f2(176,105,175);
			f2(134,135,127);
			f2(105,106,175);
			f2(175,106,174);
			f2(135,136,127);
			f2(127,136,126);
			f2(174,106,173);
			f2(136,137,126);
			f2(173,106,172);
			f2(137,138,126);
			f2(106,107,172);
			f2(172,107,171);
			f2(138,139,126);
			f2(171,107,170);
			f2(126,139,125);
			f2(139,140,125);
			f2(170,107,169);
			f2(140,141,125);
			f2(141,142,125);
			f2(169,107,168);
			f2(107,108,168);
			f2(142,143,125);
			f2(168,108,167);
			f2(143,144,125);
			f2(125,144,124);
			f2(167,108,166);
			f2(144,145,124);
			f2(166,108,165);
			f2(108,109,165);
			f2(145,146,124);
			f2(165,109,164);
			f2(164,109,163);
			f2(146,147,124);
			f2(163,109,162);
			f2(147,148,124);
			f2(124,148,123);
			f2(162,109,161);
			f2(148,149,123);
			f2(161,109,160);
			f2(149,150,123);
			f2(109,110,160);
			f2(160,110,159);
			f2(150,151,123);
			f2(159,110,158);
			f2(151,152,123);
			f2(158,110,157);
			f2(152,153,123);
			f2(157,110,156);
			f2(153,154,123);
			f2(156,110,155);
			f2(154,155,123);
			f2(155,110,123);
			f2(123,110,122);
			f2(110,111,122);
			f2(122,111,121);
			f2(111,112,121);
			f2(121,112,120);
			f2(112,113,120);
			f2(120,113,119);
			f2(113,114,119);
			f2(119,114,118);
			f2(114,115,118);
			f2(118,115,117);
			f2(115,116,117);

			moveAllFacesToSurface ("mesh");

			x = 0.000000; y = 0.000000; z = 0.000000;

			rotationX = 0.01745329252 * 0.000000; rotationY = 0.01745329252 * 0.000000; rotationZ = 0.01745329252 * 0.000000;

			scaleX = 50.000000; scaleY = 50.000000; scaleZ = 50.000000;

		}
	}
}